﻿public struct Score
{
    public int count;
    public int infCount;
    public Score(int count, int infCount)
    {
        this.count = count;
        this.infCount = infCount;
    }
    public Score AddResult(Score score2)
    {
        return new Score(count + score2.count, infCount + score2.infCount);
    }
    public Score SubResult(Score score2)
    {
        return new Score(count - score2.count, infCount - score2.infCount);
    }
    public int Compare(Score score2)
    {
        int result;
        if (infCount != score2.infCount)
        {
            result = (infCount < score2.infCount) ? -1 : 1;
        }
        else if (count != score2.count)
        {
            result = (count < score2.count) ? -1 : 1;
        }
        else
        {
            result = 0;
        }
        return result;
    }
}